﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Jack.IData;
using Jack.ITask;
using Jack.Service;

namespace ConsoleApplication2
{
    class Program
    {
        //private static IHello taskSchedulerService = new  ClientProxy().Create<IHello>("net.tcp://127.0.0.1:30000/ServiceHello");
        static void Main(string[] args)
        {
            //TaskSpider.Start();
            //Console.ReadLine();
            Hello();
            Console.Read();
        }

        static void Hello()
        {  
            ClientHello hello = new ClientHello();
            string commandString = string.Empty;
            while (commandString != "exit")
            {
                commandString = Console.ReadLine();
                hello.SayHelloTo(commandString);
            }
        }
    }
}
